<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="framework/css/form.css" type="text/css">
<script src="framework/js/form.js" type="text/javascript"></script>
<script src="framework/js/checktrim.js" type="text/javascript"></script>
<script language="javascript">
	function Check() {
		if (document.getElementById('password').value == '') {
			alert('必须输入密码！');
			document.getElementById('password').focus();
			return false;
		}
		if (document.getElementById('password').value != document
				.getElementById('newpassword').value) {
			alert("两次密码输入不一致");
			document.getElementById('password').focus();
			document.getElementById('password').value = "";
			document.getElementById('newpassword').value = "";
			return false;
		}
		document.editAdminpass.submit();
	}
</script>
</head>
<body>
${message}
	<h2>修改密码</h2>
	<hr>

	<form action="editAdminPass_acc" enctype="multipart/form-data"
		method="post">
		<div class="bo">
			<label>原&nbsp;密&nbsp;码&nbsp;：</label><input type="password" size="30"
				name="admin.pass" maxlength="20">
		</div>
		<div class="bo">
			<label>新&nbsp;密&nbsp;码&nbsp;：</label><input type="password" size="30"
				id="password" name="password" maxlength="20">
		</div>
		<div class="bo">
			<label>确认密码：</label> <input type="password" size="30"
				id="newpassword" name="newpassword" maxlength="20">
		</div>
		<div class="bo" align="right">
			<input type="submit" value="修改"
				onclick="javascript:return Check();a();"> <input
				type="reset" value="重置">
		</div>
		<input type="hidden" name="admin.role.id" value="${sessionScope.admin.role.id}">
	</form>


</body>
</html>